<div id="modal">
    <div class="red">
        [$result.msg]
    </div>
	<div class="show_title">
		<h2>添加/编辑模版</h2>
	</div>
    <div>
    	<div id="sec_module">
		</div>
    	<div id="main_module">
    		<div id="main_module_content">
		        <form action="/admin/admin_modal/savemodal" name="savemodal" id="savemodal" method="post">
		        	<input type="hidden" name="modal[mt_id]" value="[$modal.mt_id]"/>
		            <table>
		                <tr>
		                    <td width="200px">
		                        模板标题
		                    </td>
		                    <td>
		                        <input type="text" value="[@htmlspecialchars($modal.mt_name)]" name="modal[mt_name]"/><span class="red">*</span>
		                    </td>
		                </tr>
		                <tr>
		                    <td>
		                       文件名称
		                    </td>
		                    <td>
		                        <input type="text" value="[@htmlspecialchars($modal.mt_formwork_name)]" name="modal[mt_formwork_name]"/><span class="red">*</span>
		                    </td>
		                </tr>
		                <tr>
		                    <td>
		                        备注
		                    </td>
		                    <td>
		                         <textarea class=textarea name="modal[mt_des]">[@htmlspecialchars($modal.mt_des)]</textarea>
		                    </td>
		                </tr>
		                <tr>
		                    <td>
		                        是否多图模式
		                    </td>
		                    <td>
		                        <input type="radio" value="1"
								<if $modal.mt_is_multi>
									checked=checked
								</if> 
								 name="modal[mt_is_multi]"/>是 
								<input type="radio" value="0" 
								<if !$modal.mt_is_multi>
									checked=checked
								</if> 
								name="modal[mt_is_multi]"/>否
		                    </td>
		                </tr>
		                <tr>
		                    <td>
		                        排序
		                    </td>
		                    <td>
		                        <input type="" size="10" value="[@htmlspecialchars($modal.sort)]" name="modal[sort]"/>
		                    </td>
		                </tr>
		            </table>
		            <input type="submit" class="input" name="submit_btn" value="保存"/>
		        </form>
				</div>
			</div>
    </div>
    <script>
        $(function(){
            $(":submit").click(function(e){
                $.ajaxSubmit($(this).parents('form'), function(data){
                    $.showPageInfo("#page_info", data.info, 500, true);
                });
                return false;
            });
            
        })
    </script>
</div>
